<?php

namespace IDock\Insurance\TPIC\Response;

use IDock\Http\Response;
use IDock\IDock\IDockEnums;
use IDock\Insurance\TPIC\Response\AllTPICResponse;
use IDock\Insurance\TPIC\TPICEnums;
use IDock\Printer\preInquiryPrinter;
use IDock\Printer\VehicleModelPrinter;
use IDock\Printer\VehiclePrinter;

class SaveVehicleResponse extends AllTPICResponse
{
    public function printerInit() :Response
    {
        $prePrinter = new preInquiryPrinter();
        $body = $this->getBody()['body'] ?? '';
        $head = $this->getBody()['head'] ?? '';
        $prePrinter->argc['orderNo'] = $body['order']['orderNo'] ?? '';
        $prePrinter->argc['session'] = $head['session'] ?? '';
        $this->setCode(200);
        $this->printer = $prePrinter;
        return $this;
    }
}
